import { http } from "@/utils/http";

export const GetMoneyAccounts = (
	data: Eps.FundService.GetMoneyAccounts_Params = {}
): Promise<Eps.FundService.GetMoneyAccounts> => {
	return http.post(`/FundService/GetMoneyAccounts`, Object.values(data));
};

export const GetMoneyDetails = (
	data: Eps.FundService.GetMoneyDetails_Params = {}
): Promise<Eps.FundService.GetMoneyDetails> => {
	return http.post(`/FundService/GetMoneyDetails`, Object.values(data));
};

export const GetRechargeAddress = (
	data: Eps.FundService.GetRechargeAddress_Params = {}
): Promise<Eps.FundService.GetRechargeAddress> => {
	return http.post(`/FundService/GetRechargeAddress`, Object.values(data));
};

export const GetRechargeConfig = (
	data: Eps.FundService.GetRechargeConfig_Params = {}
): Promise<Eps.FundService.GetRechargeConfig> => {
	return http.post(`/FundService/GetRechargeConfig`, Object.values(data));
};

export const GetRecharges = (
	data: Eps.FundService.GetRecharges_Params = {}
): Promise<Eps.FundService.GetRecharges> => {
	return http.post(`/FundService/GetRecharges`, Object.values(data));
};

export const CreateAddress = (
	data: Eps.FundService.CreateAddress_Params = {}
): Promise<Eps.FundService.CreateAddress> => {
	return http.post(`/FundService/CreateAddress`, Object.values(data));
};

export const CreatePairKey = (
	data: Eps.FundService.CreatePairKey_Params = {}
): Promise<Eps.FundService.CreatePairKey> => {
	return http.post(`/FundService/CreatePairKey`, Object.values(data));
};

export const Encrypt = (
	data: Eps.FundService.Encrypt_Params = {}
): Promise<Eps.FundService.Encrypt> => {
	return http.post(`/FundService/Encrypt`, Object.values(data));
};

export const TestPrivateKey = (
	data: Eps.FundService.TestPrivateKey_Params = {}
): Promise<Eps.FundService.TestPrivateKey> => {
	return http.post(`/FundService/TestPrivateKey`, Object.values(data));
};

export const GetWithdrawFee = (
	data: Eps.FundService.GetWithdrawFee_Params = {}
): Promise<Eps.FundService.GetWithdrawFee> => {
	return http.post(`/FundService/GetWithdrawFee`, Object.values(data));
};

export const GetWithdrawList = (
	data: Eps.FundService.GetWithdrawList_Params = {}
): Promise<Eps.FundService.GetWithdrawList> => {
	return http.post(`/FundService/GetWithdrawList`, Object.values(data));
};

export const Withdraw = (
	data: Eps.FundService.Withdraw_Params = {}
): Promise<Eps.FundService.Withdraw> => {
	return http.post(`/FundService/Withdraw`, Object.values(data));
};

export const GetCoins = (
	data: Eps.FundService.GetCoins_Params = {}
): Promise<Eps.FundService.GetCoins> => {
	return http.post(`/FundService/GetCoins`, Object.values(data));
};

export const GetLegalRecharges = (
	data: Eps.FundService.GetLegalRecharges_Params = {}
): Promise<Eps.FundService.GetLegalRecharges> => {
	return http.post(`/FundService/GetLegalRecharges`, Object.values(data));
};

export const GetPlatformLegalAccounts = (
	data: Eps.FundService.GetPlatformLegalAccounts_Params = {}
): Promise<Eps.FundService.GetPlatformLegalAccounts> => {
	return http.post(`/FundService/GetPlatformLegalAccounts`, Object.values(data));
};

export const LegalRecharge = (
	data: Eps.FundService.LegalRecharge_Params = {}
): Promise<Eps.FundService.LegalRecharge> => {
	return http.post(`/FundService/LegalRecharge`, Object.values(data));
};

export const GetLegalWithdraws = (
	data: Eps.FundService.GetLegalWithdraws_Params = {}
): Promise<Eps.FundService.GetLegalWithdraws> => {
	return http.post(`/FundService/GetLegalWithdraws`, Object.values(data));
};

export const LegalWithdraw = (
	data: Eps.FundService.LegalWithdraw_Params = {}
): Promise<Eps.FundService.LegalWithdraw> => {
	return http.post(`/FundService/LegalWithdraw`, Object.values(data));
};

export const Transfer = (
	data: Eps.FundService.Transfer_Params = {}
): Promise<Eps.FundService.Transfer> => {
	return http.post(`/FundService/Transfer`, Object.values(data));
};

export const GetFriendCommission = (
	data: Eps.FundService.GetFriendCommission_Params = {}
): Promise<Eps.FundService.GetFriendCommission> => {
	return http.post(`/FundService/GetFriendCommission`, Object.values(data));
};

export const AddBankAccount = (
	data: Eps.FundService.AddBankAccount_Params = {}
): Promise<Eps.FundService.AddBankAccount> => {
	return http.post(`/FundService/AddBankAccount`, Object.values(data));
};

export const BankAccounts = (
	data: Eps.FundService.BankAccounts_Params = {}
): Promise<Eps.FundService.BankAccounts> => {
	return http.post(`/FundService/BankAccounts`, Object.values(data));
};

export const DeleteBankAccount = (
	data: Eps.FundService.DeleteBankAccount_Params = {}
): Promise<Eps.FundService.DeleteBankAccount> => {
	return http.post(`/FundService/DeleteBankAccount`, Object.values(data));
};

export const ModifyBankAccount = (
	data: Eps.FundService.ModifyBankAccount_Params = {}
): Promise<Eps.FundService.ModifyBankAccount> => {
	return http.post(`/FundService/ModifyBankAccount`, Object.values(data));
};
